package com.rzl.expense.expense.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.EleBillamountdetailMapper;
import com.rzl.expense.expense.domain.EleBillamountdetail;
import com.rzl.expense.expense.service.IEleBillamountdetailService;

/**
 * 电费账单明细Service业务层处理
 * 
 * @author expense
 * @date 2024-11-28
 */
@Service
public class EleBillamountdetailServiceImpl implements IEleBillamountdetailService 
{
    @Autowired
    private EleBillamountdetailMapper eleBillamountdetailMapper;

    /**
     * 查询电费账单明细
     * 
     * @param billamountdetailId 电费账单明细主键
     * @return 电费账单明细
     */
    @Override
    public EleBillamountdetail selectEleBillamountdetailByBillamountdetailId(String billamountdetailId)
    {
        return eleBillamountdetailMapper.selectEleBillamountdetailByBillamountdetailId(billamountdetailId);
    }

    /**
     * 查询电费账单明细列表
     * 
     * @param eleBillamountdetail 电费账单明细
     * @return 电费账单明细
     */
    @Override
    public List<EleBillamountdetail> selectEleBillamountdetailList(EleBillamountdetail eleBillamountdetail)
    {
        return eleBillamountdetailMapper.selectEleBillamountdetailList(eleBillamountdetail);
    }

    /**
     * 新增电费账单明细
     * 
     * @param eleBillamountdetail 电费账单明细
     * @return 结果
     */
    @Override
    public int insertEleBillamountdetail(EleBillamountdetail eleBillamountdetail)
    {
        return eleBillamountdetailMapper.insertEleBillamountdetail(eleBillamountdetail);
    }

    /**
     * 修改电费账单明细
     * 
     * @param eleBillamountdetail 电费账单明细
     * @return 结果
     */
    @Override
    public int updateEleBillamountdetail(EleBillamountdetail eleBillamountdetail)
    {
        return eleBillamountdetailMapper.updateEleBillamountdetail(eleBillamountdetail);
    }

    /**
     * 批量删除电费账单明细
     * 
     * @param billamountdetailIds 需要删除的电费账单明细主键
     * @return 结果
     */
    @Override
    public int deleteEleBillamountdetailByBillamountdetailIds(String[] billamountdetailIds)
    {
        return eleBillamountdetailMapper.deleteEleBillamountdetailByBillamountdetailIds(billamountdetailIds);
    }

    /**
     * 删除电费账单明细信息
     * 
     * @param billamountdetailId 电费账单明细主键
     * @return 结果
     */
    @Override
    public int deleteEleBillamountdetailByDate(String[] currentDate)
    {
        return eleBillamountdetailMapper.deleteEleBillamountdetailByDate(currentDate[0],currentDate[1]);
    }




    @Override
    public void batchEleBillamountdetail(List<EleBillamountdetail> list)
    {

         eleBillamountdetailMapper.batchEleBillamountdetail(list);
    }


}
